//
//  CrystalMinds SQLiteDatabase Library
//  Version 2.3
//
//  Created by Mark van Wijnen on 16-10-09.
//  Last updated on 26-10-09.
//  Copyright 2009 CrystalMinds. All rights reserved.
//  Mail: info@crystalminds.nl
//
// This work is licensed under the Creative Commons Attribution-Noncommercial- 
// No Derivative Works 3.0 Unported License.
// To view this license go to http://creativecommons.org/licenses/by-nc-nd/3.0/ 
// or send a letter to Creative Commons, 171 Second Street, Suite 300, 
// San Francisco, California, 94105, VS.

#import <Foundation/Foundation.h>
#import <sqlite3.h>

@interface CMSQLiteDatabaseStatement : NSObject {
@private
	sqlite3 *_databaseHandle;
	sqlite3_stmt *_sqliteStatement;
@public
	NSInteger useCount;
}

@property (nonatomic, readonly) NSInteger useCount;

- (sqlite3 *)database;
- (id)initWithStatement:(sqlite3_stmt *)statement forDatabase:(sqlite3 *)database;
- (void)reset;
- (NSString *)sql;
- (sqlite3_stmt *)statement;
- (void)used;

@end
